VARIABLES
    cost;

POSITIVE VARIABLES
    y11, y12, y21, y22, yc11, yc12, yc21, yc22;

y11.fx=30.0;
y12.fx=35.0;
y21.fx=20.0;
y22.fx=38.0;
EQUATIONS
    obj, con1, con2, con3, con4, con5, con6, con7, con8;

obj..   cost =e= 2.0*(y11+y12+y21+y22)+2.1*(yc11+yc12+yc21+yc22);
con1..  y11+yc11 =e= 30.0;
con2..  y12+yc12 =e= 35.0;
con3..  y21+yc21 =e= 32.0;
con4..  y22+yc22 =e= 38.0;
con5..  yc11+yc21 =l= 20.0;
con6..  yc12+yc22 =l= 20.0;
con7..  y11+y21 =l= 50.0;
con8..  y12+y22 =l= 73.0;

MODEL TEST_SLAVE /ALL/;
SOLVE TEST_SLAVE USING MIP MINIMIZING cost;
